package homework2;

import java.util.Scanner;

public class Num1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int j = 0;
        int temp ;
        System.out.println("请输入十个数");
        for (int i = 1; i <=10 ; i++) {
            System.out.println("输入第"+i+"个数为");
            int a = sc.nextInt();
            System.out.println("第"+i+"个数为"+a);
            j+=a;
        }
        System.out.println(j);


    }
}
